﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Game.aspx.cs" Inherits="Reversi.Game" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="head_Main" runat="server">
    <title></title>
    <link rel="Stylesheet" href="css/main.css" type="text/css" />
</head>
<body style="background:Yellow">
    <center>
        <form id="form_main" runat="server">
        <div id="head">

            <asp:LinkButton ID="lbtnHowTo" runat="server" 
                onclientclick="window.open('HowTo.aspx')">How To Play</asp:LinkButton>

        </div>
        <div>
            <asp:ScriptManager ID="MainSM" runat="server" />

            <asp:UpdatePanel ID="UpdateTablePanel" runat="server">
                <ContentTemplate>
                    <asp:PlaceHolder ID="UpdateHolder" runat="server" EnableViewState="False" />
                    <asp:HiddenField ID="MoveID" runat="server" />
                    <asp:Button ID="MadeMove" runat="server" onclick="MadeMove_Click" CssClass="hidden" />
                    <asp:Timer ID="Timer_Refresh" runat="server" ontick="Timer_Refresh_Tick" Interval="2000" enabled="true"/>
                </ContentTemplate>
            </asp:UpdatePanel>

            <asp:Label ID="lblTurn" runat="server" Text="Turn: " />
        </div>
        </form>
    </center>
</body>
</html>

<script type="text/javascript" language="javascript" >
    function Clicky(arg)
    {
        $get("MoveID").value = arg;
        //$get("MadeMove").style("display:block");
        $get("MadeMove").click();
    }     
</script>